﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplicationExperimental.DetailedControls
{
  public  class DetailsViewPresenter : SecondaryPresenter <object >
    {
      public   DocumentDetailedControl view;
        public DetailsViewPresenter()
        {

        }
        public DetailsViewPresenter(DocumentDetailedControl view)
        {
            this.view = view;
        }

        public override void PushModelToView(object MainGridSelectedItem)
        {
            view.Visibility = System.Windows.Visibility.Visible;
            view.SourceDocument = MainGridSelectedItem;
            base.PushModelToView(MainGridSelectedItem);
        }
    }
}
